#include "singleton.h"

Singleton* Singleton::wpInstance = NULL; 

Singleton::Singleton()
{ 
	cout<<"-----singleton------"<<endl;
}

Singleton::~Singleton()
{ 
	cout<<"----- ~singleton------"<<endl;
}

Singleton* Singleton::instance()
{
	if (wpInstance == NULL)
	{
		wpInstance = new Singleton();
	}
	return wpInstance;
}